<div id='contenu'>
	<br>
	<br>
	<br>
	<br>
	<?php
		echo "<table class ='table' border='1' align='center' width='90%'>";
			$lesSessions = $session->result_array();
			$lesInscrits = $inscrits->result_array();
			foreach ($lesSessions  as $uneSession ) {
				/*echo "<tr><th colspan = 3>Numero :".$uneSession['numero']. " | Formation : ".$uneSession['libelleform']." | 
				Niveau : ".$uneSession['niveauform']." | Date : ".$uneSession['datedebut']."</th></th>";*/
				echo "<tr>";
				echo "<th>Numero :".$uneSession['numero']. "</th>";
				echo "<th>Formation : ".$uneSession['libelleform']."</th>";
				echo "<th>Niveau : ".$uneSession['niveauform']."</th>";
				echo "<th>Date : ".$uneSession['datedebut']."</th>";
				echo "</tr>";
			}
		echo "</table>";
		echo "<table class ='table' border='1' align='center' width='90%'>";
		echo "<form action='http://localhost/PPE/FormArmor/index.php/gestionSessionAdmin/validationInscri/" . $uneSession['numero']."' method='post'>";
				echo "<tr>";
					echo "<th>Matricule</th>";
					echo "<th>Nom</th>";
					echo "<th>Adresse</th>";
					echo "<th>Participation</th>";
				echo "</tr>"; 
			foreach ($lesInscrits  as $unInscrit ) {
				echo "<tr>";
					echo "<td>".$unInscrit['matricule']."</td>";
					echo "<td>".$unInscrit['nom']."</td>";
					echo "<td>".$unInscrit['ville']." : ".$unInscrit['rue']."</td>";
					echo "<td><INPUT type='checkbox' name='matricule[]' value=".$unInscrit['matricule']." checked ></td>";
				echo "</tr>"; 
			}
			echo "<tr>";
			foreach ($lesSessions  as $uneSession ) {
				echo "<td colspan=4><center>";
					echo "<input type=submit value='Valider'>";
				echo"</center></td>";
			
			}
					echo "</tr>";
		echo "</form>";
		echo "</table>";
	?>
</div>